blktap2: Fix non-Linux build
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Feb 2010 13:57:20 +0000 (13:57 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Feb 2010 13:57:20 +0000 (13:57 +0000)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/blktap2/drivers/tapdisk-queue.c

index 1e48bd946efb07800805efc8bd476ba1d64816ef..b6394bfdad0253d18d1bb27966cc423c05c0237a 100644 (file)
@@ -287,7 +287,11 @@ struct lio {
 static int
 tapdisk_lio_check_resfd(void)
 {
+#if defined(__linux__)
        return tapdisk_linux_version() >= KERNEL_VERSION(2, 6, 22);
+#else
+       return 1;
+#endif
 }
 
 static void